package cn.cau.epidemicsurveysystem.service.impl;

import cn.cau.epidemicsurveysystem.bean.AreaBean;
import cn.cau.epidemicsurveysystem.dao.AreaRepository;
import cn.cau.epidemicsurveysystem.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @projectName: gp2022
 * @package: cn.cau.epidemicsurveysystem.service.impl
 * @className: AreaServiceImpl
 * @author: zfy
 * @description: TODO
 * @date: 2022/3/5 0005 20:32
 * @version: 1.0
 */
@Service
public class AreaServiceImpl implements AreaService {

    @Autowired
    AreaRepository areaRepository;

    @Override
    public List<AreaBean> findAll() {
        return areaRepository.findAll();
    }
}
